import request from "./request";
const Req = new request()
export function list(page=0,limit=10){
    return Req.get({
        url:'/goodsList',
        data:{
            page,
            limit
        }
    })
}
export function remove(_id){
    return Req.post({
        url:'/goodsDelete',
        data:{
            _id
        }
    })
}
export function add(data){
    return Req.post({
        url:"/goodsAdd",
        data:data
    })
}
export function update({_id,mode,content}){
    return Req.post({
        url:"/goodsUpdate",
        data:{
            _id,mode,content
        }
    })
}
